﻿#include "output4.h"
#include "ui_output4.h"

output4::output4(QStringList studentNames,QWidget *parent) :
    QDialog(parent),
    ui(new Ui::output4)
{
    ui->setupUi(this);
    ui->comboBox->addItems(studentNames);
}

output4::~output4()
{
    delete ui;
}

void output4::on_pushButton_clicked()
{
    ui->lineEdit->setText(QFileDialog::getSaveFileName(0,"选择保存位置",QDir::homePath(),"文本文件(*.txt);;所有文件(*.*)"));
}


void output4::on_pushButton_3_clicked()
{
    this->reject();
}


void output4::on_pushButton_2_clicked()
{
    emit outPut4(ui->comboBox->currentText(),ui->comboBox_2->currentIndex()+1,ui->lineEdit->text());
    this->accept();
}

